package com.itheima.test03;

import java.math.BigDecimal;

public class Test02 {

    public static void main(String[] args) {
        BigDecimal bd1 = new BigDecimal("0.22");
        BigDecimal bd2 = new BigDecimal("0.3");
        BigDecimal add = bd1.add(bd2);
        BigDecimal subtract = bd1.subtract(bd2);
        BigDecimal multiply = bd1.multiply(bd2);
        BigDecimal divide = bd1.divide(bd2);
        System.out.println(add);
        System.out.println(subtract);
        System.out.println(multiply);
        System.out.println(divide);


    }
}
